TARGET  = browser

QT      += core gui widgets svg concurrent

greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat

CONFIG  += c++17

#QT5中解决中文乱码
QMAKE_CFLAGS    += /utf-8
QMAKE_CXXFLAGS  += /utf-8


#程序调试详细信息输出
CONFIG(debug, debug|release): {
    DEFINES     +=  QT_LOG_DEBUG
}

#util pri
include(qtutil.pri)

#cef pri
include(qtcef.pri)


#src
INCLUDEPATH += $$PWD/../main
DEPENDPATH  += $$PWD/../main


INCLUDEPATH += $$PWD/../wnd
DEPENDPATH  += $$PWD/../wnd

SOURCES += \
    ../main/main.cpp \    
    ../wnd/mainwnd.cpp \    
    ../wnd/webtabbutton.cpp \
    ../wnd/webtabwidget.cpp \
    ../wnd/webview.cpp \
    ../wnd/webwnd.cpp


HEADERS += \
    ../main/main.h \    
    ../wnd/mainwnd.h \    
    ../wnd/webtabbutton.h \
    ../wnd/webtabwidget.h \
    ../wnd/webview.h \
    ../wnd/webwnd.h


FORMS += \
    ../wnd/mainwnd.ui \
    ../wnd/webtabbutton.ui \
    ../wnd/webwnd.ui


RESOURCES       += ../main/browser.qrc
RC_FILE         += ../main/browser.rc
QMAKE_MANIFEST  += ../main/browser.manifest

win32-msvc* {
    #忽略函数宏参数不足的警告
    QMAKE_CXXFLAGS *=  /wd"4003"
    contains (QMAKE_CXXFLAGS_WARN_ON, -w34003) : QMAKE_CXXFLAGS_WARN_ON -= -w34003

    #忽略参数不引用的警告
    QMAKE_CXXFLAGS *=  /wd"4100"
    contains (QMAKE_CXXFLAGS_WARN_ON, -w34100) : QMAKE_CXXFLAGS_WARN_ON -= -w34100
}
